package tenumn.energytech.compat;

import mcjty.theoneprobe.TheOneProbe;
import mcjty.theoneprobe.apiimpl.TheOneProbeImp;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.InterModComms;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent;
import tenumn.energytech.EnergyTech;

import java.util.function.Function;

//top联动
@Mod.EventBusSubscriber(modid = EnergyTech.ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class TOPComapt {
    @SubscribeEvent
    public static void enqueueIMC(final InterModEnqueueEvent event) {
        InterModComms.sendTo("theoneprobe", "getTheOneProbe", () -> (Function<TheOneProbeImp, Void>) TOPProvider::initImpl);
    }

}
